package com.example.manager.controller;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.manager.service.LoginService;

@RestController
public class LoginController {
	@Autowired
	LoginService service;
	
	@PostMapping("login")//验证密码账号是否为空在登录页进行
	public String login(String identity, String id, String pwd, HttpSession session) {
		System.out.println(identity+id+pwd);
		return service.login(identity, id, pwd, session);
	}
}
